package com.ttbj.product.bean.exception;

public class BusinessException extends Exception{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3007889752813121888L;
	
	   private int errorCode;

	    public BusinessException(String message) {
	        super(message);
	    }

	    public BusinessException(String message, int errorCode) {
	        super(message);
	        this.errorCode = errorCode;
	    }

	    public BusinessException(int errorCode) {
	        this.errorCode = errorCode;
	    }

	    public BusinessException(Throwable t) {
	        super(t);
	    }

	    public int getErrorCode() {
	        return this.errorCode;
	    }

}
